package com.xbj.business.showcase.web;

import com.xbj.business.showcase.bean.User;
import com.xbj.springmvc.core.annotation.Controller;
import com.xbj.springmvc.core.annotation.RequestMapping;

@Controller
@RequestMapping("/shop")
public class ShopAction {

	@RequestMapping("/index")
	public String index(User user){
		if("admin".equals(user.getUserName())){
			return "/success.jsp";
		}else{
			return "/error.jsp";
		}
	}
}
